home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15026 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: help with program
  5. Date: 16 Apr 1996 14:55:26 -0500
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4l0tve$l8v@solutions.solon.com>
  8. References: <4kkgde$t2m@news.duke.edu> <4kvl0e$g4c@hpbblb.bbn.hp.com>
  9. Reply-To: seebs@solon.com
  10. NNTP-Posting-Host: solutions.solon.com
  11.  
  12. In article <4kvl0e$g4c@hpbblb.bbn.hp.com>, Matthias Dittrich  <matti> wrote:
  13. >The function scanf() requires a '\n' character to accept input. You have to
  14. >remove this character from the input stream. A call of fflush(stdin) before
  15. >each scanf() should work.
  16.  
  17. No, it shouldn't.  It's illegal, and may (and *will*) dump core, abort, do
  18. nothing, shove unexpected characters on your input stream, write unexpected
  19. characters on your output stream, or do any number of other things.
  20.  
  21. Please refrain from posting bogus advice; this is covered *correctly* in the
  22. FAQ.
  23.  
  24. Also, please configure your browser to give a valid return address; "matti"
  25. is not sufficient to identify you.
  26.  
  27. -s
  28. -- 
  29. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  30. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  31. Unsolicited email is not welcome, and will be billed for at consulting rates.
  32. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  33.